<?php
$output = array(
    'taxonomy' => array(
        'href' => '#',
        'name' => '术语',
        'icon' => 'fa fa-th-large',
    ),
);
$di = \Phalcon\Di::getDefault();
$taxonomyList = $di->getShared('entityManager')->contentModel('term');
foreach ($taxonomyList as $key => $value) {
    $output['adminTerm' . ucfirst($key)] = array(
        'href' => array(
            'for' => 'adminTermList',
            'contentModel' => $key,
            'page' => 1,
        ),
        'icon' => 'fa fa-stack-overflow',
        'name' => $value['name'],
    );
}
unset($taxonomyList);
return $output;